package com.shamine.kuaiqiao.blink.data

import cn.bmob.v3.BmobObject
import cn.bmob.v3.datatype.BmobFile

/**
 * 相册数据
 */
data class Gallery(var deleted: Boolean): BmobObject(){

    lateinit var passer: Passer
    lateinit var title: String
    var size: Int = 0
    var cover: BmobFile? = null

    constructor(size: Int,deleted: Boolean) : this(deleted){
         this.size = size
         this.deleted = deleted
    }

    constructor(passer: Passer, //用户
             title: String,    //相册名字
             size: Int,    //相册大小
             cover: BmobFile?,  // 封面图片
             deleted: Boolean) : this(deleted) {
         this.passer = passer
         this.title = title
         this.size = size
         this.cover = cover
         this.deleted = deleted
    }
}